package cn.pupil.springframework.core.io;

/**
 * @Description: 资源加载器接口
 * @Author: pupil
 * @Date: 2024/11/4 下午 4:12
 */
public interface ResourceLoader {

    /**
     * Pseudo URL prefix for loading from the class path: "classpath:"
     */
    String CLASSPATH_URL_PREFIX = "classpath:";

    /**
     * 获取资源
     * @param location 位置
     * @return
     */
    Resource getResource(String location);
}
